import request from "@/request/index.js";

const auth = "auth"; //http://101.42.107.47:30019文档
const base = "base"; //http://101.42.107.47:30020文档
const zhpt = "zhpt"; //http://101.42.107.47:30018文档

//获取成果列表
export const getAchievementListApi = (data) => {
    return request({
        url: `/api/${zhpt}/result/console/search`,
        method: "post",
        data,
    });
};

//新增成果
export const addAchievementApi = (data) => {
    return request({
        url: `/api/${zhpt}/result/publish`,
        method: "post",
        data,
    });
};

//删除启用禁用成果
export const operateAchievementApi = (data) => {
    return request({
        url: `/api/${zhpt}/result/batch`,
        method: "post",
        data,
    });
};

//获取成果详情
export const achievementDetailApi = (params) => {
    return request({
        url: `/api/${zhpt}/result/console/search/info`,
        method: "get",
        params,
    });
};

//编辑成果
export const editAchievementApi = (data) => {
    return request({
        url: `/api/${zhpt}/result/edit`,
        method: "post",
        data,
    });
};

//通过审核
export const auditAchievementApi = (data) => {
    return request({
        url: `/api/${zhpt}/result/audit`,
        method: "post",
        data,
    });
};